<!DOCTYPE html>
<meta charset=utf-8>
<title>深入 Python 3</title>
<link rel=alternate type=application/atom+xml href=http://hg.diveintopython3.org/atom-log>
<link rel=stylesheet href="dip3.css">
<style>
h1:before,h2:before{content:''}
#a,#b,#c{list-style:none;margin:0 0 0 -1.7em}
#a:before{content:'A. \00a0 \00a0'}
#b:before{content:'B. \00a0 \00a0'}
#c:before{content:'C. \00a0 \00a0'}
</style>
<link rel=stylesheet media='only screen and (max-device-width: 480px)' href="http://woodpecker.org.cn/diveintopython3/mobile.css">
<link rel=stylesheet media=print href="http://woodpecker.org.cn/diveintopython3/print.css">
<meta name=viewport content='initial-scale=1.0'>
<form action=http://www.google.com/cse><div><input type=hidden name=cx value=014021643941856155761:l5eihuescdw><input type=hidden name=ie value=UTF-8><input type=search name=q size=25 placeholder="powered by Google&trade;">&nbsp;<input type=submit name=sa value=搜索></div></form>

<p>当前位置:&nbsp;&nbsp;<span title="Ce n'est pas un point" style='cursor:default'>•</span>

<h1>深入 Python 3</h1>

<p><cite>《深入 Python 3》</cite> 的内容涵盖了 Python 3 及其与 Python 2 的区别。相对<cite><a href=http://diveintopython.org/>《深入 Python》</a></cite>而言，它 20% 的内容进行了修订，80％ 的内容是全新的。这本书现在已经完成了，但<a href="about.html">随时欢迎反馈意见</a>。<h2>目录 (<a href="table-of-contents.html">展开</a>)</h2>

<p style="float:right;width:242px;text-align:center;margin:0 0 0 1.75em"><a style="border:0" href="http://www.amazon.com/gp/product/1430224150?ie=UTF8&amp;tag=diveintomark-20&amp;creativeASIN=1430224150" title="Affiliate link = I earn an extra buck"><em>Also available on dead trees!</em><br><img src=http://ecx.images-amazon.com/images/I/51N9HK%2B7WGL._SL300_.jpg alt="深入 Python 3" width=242 height=300><br><em>Pre-order now, get it October 16th!</em></a>

<!-- toc -->
<ol start=-1>
<li><a href="whats-new.html">《深入 Python 3》中有何新内容</a>
</li><li><a href="installing-python.html">安装 Python</a>
</li><li><a href="your-first-python-program.html">第一份 Python 程序</a>
</li><li><a href="native-datatypes.html">内置数据类型</a>
</li><li><a href="comprehensions.html">理解</a>
</li><li><a href="strings.html">字符串</a>
</li><li><a href="regular-expressions.html">正则表达式</a>
</li><li><a href="generators.html">闭合 <i class=baa>与</i> 生成器</a>
</li><li><a href="iterators.html">类 <i class=baa>&amp;</i> 迭代器</a>
</li><li><a href="advanced-iterators.html">高级迭代器</a>
</li><li><a href="unit-testing.html">单元测试</a>
</li><li><a href="refactoring.html">重构</a>
</li><li><a href="files.html">文件</a>
</li><li><a href="xml.html">XML</a>
</li><li><a href="serializing.html">Python 对象序列化</a>
</li><li><a href="http-web-services.html">HTTP Web 服务</a>
</li><li><a href="case-study-porting-chardet-to-python-3.html">案例研究：将 <code>chardet</code> 移植到 Python 3</a>
</li><li><a href="packaging.html">Python 类库打包</a>
</li><li id=a><a href="porting-code-to-python-3-with-2to3.html">使用 <code>2to3</code> 将代码移植到 Python 3</a>
</li><li id=b><a href="special-method-names.html">特殊方法名称</a>
</li><li id=c><a href="where-to-go-from-here.html">接下来阅读什么？</a>
</li></ol><!-- /toc -->


<p>本书遵循 <a rel=license href=http://creativecommons.org/licenses/by-sa/3.0/>Creative Commons Attribution Share-Alike</a> 协议自由授权。您可选择下载 <a href="http://woodpecker.org.cn/diveintopython3/d/diveintopython3-html-latest.zip"><abbr>HTML</abbr></a> 或是 <a href="http://woodpecker.org.cn/diveintopython3/d/diveintopython3-pdf-latest.zip"><abbr>PDF</abbr></a> 版本。尤伯爱好者还可从水银仓库（Mercurial repository）进行克隆：<pre><samp class=p>you@localhost:~$ </samp><kbd>hg clone <a href=http://hg.diveintopython3.org/>http://hg.diveintopython3.org/</a> diveintopython3</kbd></pre>

<p class='c nm'>本书为 Lynx 优化仅仅是因为你 ＊＊＊ 。<br>我被告知它在图形化浏览器中看起来也很美观。<p class=c>© 2001–9 <a href="about.html">Mark Pilgrim</a>

<p class=c>译文: <a href=http://code.google.com/p/inmersionenpython3/ lang=es hreflang=es>西班牙语</a>、 <a href=http://gpiancastelli.altervista.org/dip3-it/ lang=it hreflang=it>意大利语</a>
